<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../../commons/taglib.jsp" %>
<!DOCTYPE html>
<html lang="zh-cn">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>科室收入统计</title>
<link rel="stylesheet" href="<%=request.getContextPath() %>/static/css/admin.css">
<link rel="stylesheet" href="<%=request.getContextPath() %>/static/css/pintuer.css">
<script src="<%=request.getContextPath() %>/static/js/jquery.js"></script>
<script src="<%=request.getContextPath() %>/static/js/pintuer.js"></script>
</head>

<body>
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder"> 科室收入统计</strong>
			</div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left: 10px;">
					<li>
						<select class="input" id="selct" style="width:200px; line-height:17px; display:inline-block">
							<c:forEach items="${ li }" var="list">
					            <option value="${list.d_name}">${list.d_name}</option>
					        </c:forEach>
				          </select>
						<button class="button border-main icon-search but">搜索</button>
					</li>
				</ul>
			</div>
			<table class="table table-hover text-center yp_table" style="display: none;">
				<tr>
					<th style="text-align: center;">科室名</th>
					<th style="text-align: center;">挂号总费</th>
					<th style="text-align: center;">药品总费</th>
					<th style="text-align: center;">总费用</th>
				</tr>
                    <tr class="tdt">
                        <td class="ks"></td>
                        <td class="gh"></td>
                        <td class="yp"></td>
                        <td class="zf"></td>
                    </tr>
                </table>
			
		</div>
	
	<script type="text/javascript">
		//搜索
		$('.but').click(function(){
			$.post('stdepserch',{
				name:$("#selct").val()
			},function(e){
				$('.yp_table').show();
				$(".ks").html($("#selct").val());
				$(".gh").html(e.fee);
				$(".yp").html(e.amount);
				$(".zf").html(e.money);
			});
		});
	</script>
</body>

</html>